package com.seeingtv.model;

import java.io.Serializable;

/**
 * @author hubert
 * @date 2017-11-11
 * */
public class Sysadmin implements Serializable{

    private static final long serialVersionUID = -282500983653132339L;

    private static final String TABLE_ALIAS = "管理员信息";
    private static final String ALIAS_ID = "管理员";
    private static final String ALIAS_LOGINNAME = "账号名称";
    private static final String ALIAS_PASSWORD = "密码";
    private static final String ALIAS_REALNAME = "姓名";
    private static final String ALIAS_PHOTO = "电话";
    private static final String ALIAS_MOBILE = "手机";
    private static final String ALIAS_GENDER = "性别";
    private static final String ALIAS_FAX = "传真";
    private static final String ALIAS_EMAIL = "邮件";
    private static final String ALIAS_MSN = "MSN";
    private static final String ALIAS_QQ = "QQ";
    private static final String ALIAS_TYPE = "类型";
    private static final String ALIAS_STATUS = "状态";
    private static final String ALIAS_ROLEID = "角色";
    private static final String ALIAS_ROLENAME = "角色";
    private static final String ALIAS_CPID = "CP名称";
    private static final String ALIAS_SPID = "SP名称";
    private static final String ALIAS_CPNAME = "CP名称";
    private static final String ALIAS_SPNAME = "SP名称";
    private static final String ALIAS_SPRESELLERID = "经销商ID";
    private static final String ALIAS_SPRESELLERNAME = "名称";
    private static final String ALIAS_CATEGORYID = "分类ID";
    private static final String ALIAS_CATEGORYNAME = "分类名称";
    private static final String ALIAS_DEPARTMENTID = "所属部门";
    private static final String ALIAS_DEPARTMENTNAME = "所属部门";
    private static final String ALIAS_ISDEPARTMENTMANAGER = "是否主管";


    /** 管理员 */
    private Integer id;
    public Integer getId() {
        return id;
    }
    public void setId(Integer value) {
        this.id = value ;
    }

    /** 账号名称 */
    private String loginname;
    public String getLoginname() {
        return loginname;
    }
    public void setLoginname(String value) {
        this.loginname = value ;
    }

    /** 密码 */
    private String password;
    public String getPassword() {
        return password;
    }
    public void setPassword(String value) {
        this.password = value ;
    }

    /** 姓名 */
    private String realname;
    public String getRealname() {
        return realname;
    }
    public void setRealname(String value) {
        this.realname = value ;
    }

    /** 电话 */
    private String photo;
    public String getPhoto() {
        return photo;
    }
    public void setPhoto(String value) {
        this.photo = value ;
    }

    /** 手机 */
    private String mobile;
    public String getMobile() {
        return mobile;
    }
    public void setMobile(String value) {
        this.mobile = value ;
    }

    /** 性别 */
    private Integer gender;
    public Integer getGender() {
        return gender;
    }
    public void setGender(Integer value) {
        this.gender = value ;
    }

    /** 传真 */
    private String fax;
    public String getFax() {
        return fax;
    }
    public void setFax(String value) {
        this.fax = value ;
    }

    /** 邮件 */
    private String email;
    public String getEmail() {
        return email;
    }
    public void setEmail(String value) {
        this.email = value ;
    }

    /** MSN */
    private String msn;
    public String getMsn() {
        return msn;
    }
    public void setMsn(String value) {
        this.msn = value ;
    }

    /** QQ */
    private String qq;
    public String getQq() {
        return qq;
    }
    public void setQq(String value) {
        this.qq = value ;
    }

    /** 类型 */
    private Integer type;
    public Integer getType() {
        return type;
    }
    public void setType(Integer value) {
        this.type = value ;
    }

    /** 状态 */
    private Integer status;
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer value) {
        this.status = value ;
    }

    /** 角色 */
    private Integer roleid;
    public Integer getRoleid() {
        return roleid;
    }
    public void setRoleid(Integer value) {
        this.roleid = value ;
    }

    /** 角色 */
    private String rolename;
    public String getRolename() {
        return rolename;
    }
    public void setRolename(String value) {
        this.rolename = value ;
    }

    /** CP名称 */
    private String cpid;
    public String getCpid() {
        return cpid;
    }
    public void setCpid(String value) {
        this.cpid = value ;
    }

    /** SP名称 */
    private Integer spid;
    public Integer getSpid() {
        return spid;
    }
    public void setSpid(Integer value) {
        this.spid = value ;
    }

    /** CP名称 */
    private String cpname;
    public String getCpname() {
        return cpname;
    }
    public void setCpname(String value) {
        this.cpname = value ;
    }

    /** SP名称 */
    private String spname;
    public String getSpname() {
        return spname;
    }
    public void setSpname(String value) {
        this.spname = value ;
    }

    /** 经销商ID */
    private Integer spresellerid;
    public Integer getSpresellerid() {
        return spresellerid;
    }
    public void setSpresellerid(Integer value) {
        this.spresellerid = value ;
    }

    /** 名称 */
    private String spresellername;
    public String getSpresellername() {
        return spresellername;
    }
    public void setSpresellername(String value) {
        this.spresellername = value ;
    }

    /** 分类ID */
    private String categoryid;
    public String getCategoryid() {
        return categoryid;
    }
    public void setCategoryid(String value) {
        this.categoryid = value ;
    }

    /** 分类名称 */
    private String categoryname;
    public String getCategoryname() {
        return categoryname;
    }
    public void setCategoryname(String value) {
        this.categoryname = value ;
    }

    /** 所属部门 */
    private Integer departmentid;
    public Integer getDepartmentid() {
        return departmentid;
    }
    public void setDepartmentid(Integer value) {
        this.departmentid = value ;
    }

    /** 所属部门 */
    private String departmentname;
    public String getDepartmentname() {
        return departmentname;
    }
    public void setDepartmentname(String value) {
        this.departmentname = value ;
    }

    /** 是否主管 */
    private Integer isdepartmentmanager;
    public Integer getIsdepartmentmanager() {
        return isdepartmentmanager;
    }
    public void setIsdepartmentmanager(Integer value) {
        this.isdepartmentmanager = value ;
    }

   /** Model转化成String */
    @Override
    public String toString() {
        String ret = "";
        ret += ALIAS_ID + ":" + getId() + ";";
        ret += ALIAS_LOGINNAME + ":" + getLoginname() + ";";
        ret += ALIAS_PASSWORD + ":" + getPassword() + ";";
        ret += ALIAS_REALNAME + ":" + getRealname() + ";";
        ret += ALIAS_PHOTO + ":" + getPhoto() + ";";
        ret += ALIAS_MOBILE + ":" + getMobile() + ";";
        ret += ALIAS_GENDER + ":" + getGender() + ";";
        ret += ALIAS_FAX + ":" + getFax() + ";";
        ret += ALIAS_EMAIL + ":" + getEmail() + ";";
        ret += ALIAS_MSN + ":" + getMsn() + ";";
        ret += ALIAS_QQ + ":" + getQq() + ";";
        ret += ALIAS_STATUS + ":" + getStatus() + ";";
        ret += ALIAS_ROLEID + ":" + getRoleid() + ";";
        ret += ALIAS_ROLENAME + ":" + getRolename() + ";";
        ret += ALIAS_CPID + ":" + getCpid() + ";";
        ret += ALIAS_SPID + ":" + getSpid() + ";";
        ret += ALIAS_CPNAME + ":" + getCpname() + ";";
        ret += ALIAS_SPNAME + ":" + getSpname() + ";";
        ret += ALIAS_SPRESELLERID + ":" + getSpresellerid() + ";";
        ret += ALIAS_SPRESELLERNAME + ":" + getSpresellername() + ";";
        ret += ALIAS_CATEGORYID + ":" + getCategoryid() + ";";
        ret += ALIAS_CATEGORYNAME + ":" + getCategoryname() + ";";
        ret += ALIAS_DEPARTMENTID + ":" + getDepartmentid() + ";";
        ret += ALIAS_DEPARTMENTNAME + ":" + getDepartmentname() + ";";
        ret += ALIAS_ISDEPARTMENTMANAGER + ":" + getIsdepartmentmanager() + ";";
        return ret;
    }

}
